/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo3;

/**
 *
 * @author Administrator
 */
public class Person02 {

    private String name;
    private String telpone;
    private String address;
    
    public Person02(){
        
    }


    public Person02(String name, String telpone, String address) {
        this.name = name;
        this.telpone = telpone;
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelpone() {
        return telpone;
    }

    public void setTelpone(String telpone) {
        this.telpone = telpone;
    }
    
    @Override
    public String toString(){
        return this.getName()+""+this.getTelpone();
    }     
    
    
    
}
